{include app:admin.inc.header}
<!--tmpl-resource-->
{include app:admin.inc.top}


<div class="container-fluid content-body">
	<div class="main">
		<!-- left side start-->
		<section class="left-section">
			<dl id="leftNav" data-type="member">
				<dt><i class="glyphicon glyphicon-user"></i> 会员管理</dt>
				{if in_case_array('admin/member',$priv) || empty($priv)}
				<dd><a class="mbh" href="{url /admin/member/index}">会员列表</a></dd>
				{/if}{if in_case_array('admin/membergroup',$priv) || empty($priv)}
				<dd><a class="mb active" href="{url /admin/memberGroup/index}">分组管理</a></dd>
				{/if}
			</dl>
		</section>


		<!-- main content start-->
		<section class="right-section" id="right-section">
			<h2 class="header">分组管理</h2>
			<!-- start of inner-frame -->
			<div class="inner-iframe">
				<div class="inner-container">
					<form role="form" class="form-horizontal basicForm content-add-form" id="content-add-form"
						  autocomplete="off">
						<h4 class="inline-form">分组信息</h4>
						<div id="fourLinkage" style="border-top:1px solid #eee;border-bottom:1px solid #eee;padding: 10px 0px;margin: 0px 0px 10px;">
							<div class="form-group">
								<label class="col-sm-2 control-label"><span
										class="asterisk">*</span>分组名称</label>
								<div class="col-sm-4">
									<input type="text" class="form-control" max-length="10" required cname="分组名称" name="data[name]" value="{$item[name]}"
										   data-name="分组名称">
								</div>
							</div>
							<p class="help-block text-error"></p>
							<div class="form-group">
								<label class="col-sm-2 control-label"><span class="asterisk">*</span>状态</label>
								<div class="col-sm-4">
									<div class="rdio rdio-default">
										<input type="radio" name="data[status]" value="0" {if $item[status]=='0'}checked="checked"{/if} id="radioPrimaryMale">
										<label for="radioPrimaryMale">启用</label>
										<input type="radio" name="data[status]" value="1" {if $item[status]=='1'}checked="checked"{/if} id="radioPrimaryFemale" style="margin-left: 40px;">
										<label for="radioPrimaryFemale">禁用</label>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">添加人</label>
								<div class="col-sm-4">
									<label class="control-label">{$item[manager_id]}</label>
								</div>
							</div>

						</div>
						<div class="btn-group btn-group-or col-sm-offset-2 inline-top">
							<a href="{if $id==''}{$do_add_url}{else}{$do_edit_url}?id={$id}{/if}"
							   class="btnsm mb  ajaxproxy"
							   proxy='{"method":"post", "location":"{$index_url}"}'>提交保存</a>

						</div>
					</form><!-- content add form -->
				</div>

			</div><!-- end of inner -->
		</section>
	</div>
</div>
{include admin.inc.footer}

<!--tmpl-script-->

<!-- pagescript -->
<script type="text/javascript">
	seajs.use("admin/memberadd",function (parameter){
		
		/**--tmpl-templatejavascript--**/
		
		<!--tmpl-templatejavascript-->
		parameter.upload_url="{$upload_url}";
		parameter.image_search_url="{$image_search_url}";
		parameter.image_list_url="{$image_list_url}";
		
		parameter.init();		
	});
</script>


<script id="assocpage" type="text/html">
<div class="text-right">
	<ul class="pagination blog-pagination">
		<li><a class="assoc-page" data-page="{[prev]}" href="javascript:void(0);">上一页</a></li> 
		{[loop pages page]}

		<li ><a class="assoc-page" data-page="{[page]}" {[if curr == page]}class="active"{[/if]} href="javascript:void(0)">{[page]}</a></li> 

		{[/loop]}
		<li><a class="assoc-page" href="javascript:void(0);" data-page="{[nexts]}">下一页</a></li> 
	</ul>	
</div>
</script>

</body>
</html>
